<form class="layui-form">
  <input type="hidden" name="id" value="<{$info['id']}>" />
  <div class="layui-form-item">
    <label class="layui-form-label">部门名称</label>
    <div class="layui-input-block">
      <input type="text" name="title" lay-verify="required" placeholder="请输入部门名称" autocomplete="off" class="layui-input" value="<{$info['title']}>">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">部门权限</label>
    <div class="layui-input-block">
      <{volist name='power' id='v'}>
      <input type="checkbox" name="power_ids[<{$v['id']}>]" lay-skin="primary" title="<{$v['title']}>" value="<{$v['id']}>" <{if !in_array($v['id'],$power_ids)}> checked <{/if}> />
      <{/volist}>
    </div>
  </div>

  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit="" lay-filter="form">立即提交</button>
    </div>
  </div>
</form>
<script>
$().ready(function(){
  layui.form.render('checkbox');
});
</script>
